﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<nelech.Models.DBModel.Track>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	רשימת מסלולים
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="HeadContent" runat="server">
<script>
    function OnLoad() {
    }
</script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>רשימת מסלולים</h2>

    <table>
        <tr>
            <th></th>
            <th>
                מס' מסלול
            </th>
            <th>
                כותרת
            </th>
            </tr>
            

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("עריכה", "EditTrack", new { id=item.number }) %>
                |
                <%= Html.ActionLink("למיחזור", "RecycleTrack", new { id = item.number })%>
                |
                <%= Html.ActionLink("תצוגה", "TrackInfo", "Track", new {id= item.number }, new object())%>
            
            </td>
            <td>
                <%= Html.Encode(item.number) %>
            </td>
            <td>
                <%= Html.Encode(item.title) %>
            </td>
          
            
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("צור מסלול חדש", "CreateTrack") %>
   <%= Html.ActionLink("לסל מיחזור", "RecycleBinTrack") %>
   <%= Html.ActionLink("מומלצים", "ListRecommendedTrack") %>
    
    </p>

</asp:Content>

